package com.java.springboot.hello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: IndexController
 * @Description: TODO
 * @Author: LiuJiaTao
 * @CreateDate: 2022-02-25
 * @Version : V1.0.0
 */
@RestController
public class IndexController {
    /**
     * 浏览器访问：http://localhost:8080/hello
     * @return HelloWorld!
     */
    @RequestMapping("/hello")
    public String hello() {
        return "HelloWorld!";
    }
}
